package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderInfo;

public interface OrderService {
    String tradeNo(String userId);

    Boolean checkTradeNo(String userId, String tradeNo);

    void deleteTradeNo(String userId);

    Long addOrder(OrderInfo orderInfo);

    Boolean checkStock(Long skuId, Integer skuNum);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(OrderInfo orderInfo);
}
